import {
    request
} from "./request";
import qs from "qs";

//  获取订单
export function getOrderlist(obj) {
    return request({
        url: "ScOrder/getOrderlist",
        method: "post",
        data: qs.stringify(obj),
    });
}
//  根据id 获取订单详情
export function getOrderInfoById(obj) {
    return request({
        url: "ScOrder/getOrderInfoById",
        method: "post",
        data: qs.stringify(obj),
    });
}
// 发货
export function ship(obj) {
    return request({
        url: "ScOrder/ship",
        method: "post",
        data: qs.stringify(obj),
    });
}

// 导入
export function importOrder(obj) {
    return request({
        url: "ScOrder/importOrder",
        headers: {
            'content-type': 'multipart/form-data'
        },
        method: 'post',
        data: obj
    });
}
//  获取厂商
export function getFactory(obj) {
    return request({
        url: "Scfactory/getFactory",
        method: "post",
        data: qs.stringify(obj)
    });
}